package com.java.module.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.java.common.lang.annotation.Excel;
import com.java.common.lang.domain.BaseEntity;

/**
 * 基础：消息对象 user_message
 * 
 * @author Administrator
 * @date 2021-03-24
 */
public class Message extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long mid;

    /** 消息类型：0系统消息 */
    @Excel(name = "消息类型：0系统消息")
    private Integer mtype;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 平台标志：1安卓 2苹果 3电脑 */
    @Excel(name = "平台标志：1安卓 2苹果 3电脑")
    private Integer platform;

    /** 删除标志（0默认 1删除） */
    private Integer delFlag;

    private Integer pushType;

    private Long[] uids;

    private Long toUid;

    private Long fromUid;

    public Integer getPushType() {
        return pushType;
    }

    public void setPushType(Integer pushType) {
        this.pushType = pushType;
    }

    public Long[] getUids() {
        return uids;
    }

    public void setUids(Long[] uids) {
        this.uids = uids;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public Long getMid() {
        return mid;
    }

    public void setMtype(Integer mtype) {
        this.mtype = mtype;
    }

    public Integer getMtype() {
        return mtype;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("mid", getMid())
                .append("mtype", getMtype()).append("title", getTitle()).append("content", getContent())
                .append("platform", getPlatform()).append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime()).append("delFlag", getDelFlag()).toString();
    }

    public Long getToUid() {
        return toUid;
    }

    public void setToUid(Long toUid) {
        this.toUid = toUid;
    }

    public Long getFromUid() {
        return fromUid;
    }

    public void setFromUid(Long fromUid) {
        this.fromUid = fromUid;
    }
}